package com.itheima.reggie.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.itheima.reggie.dto.DishDto;
import com.itheima.reggie.entity.Dish;

/**
 * @author solang
 * @date 2022-12-26 17:22
 */
public interface DishService extends IService<Dish> {
    //新增菜品同时插入菜品口味,操作两张表dish、dishFlavor
    public void saveWithFlavor(DishDto dishDto);

    //根据id查询菜品和菜品口味
    public DishDto getByIdWithFlavor(Long id);

    //更新菜品和菜品口味
    public void updateWithFlavor(DishDto dishDto);

    void saveWithDish(Integer status, Long[] ids);
}
